package io.renren.modules.eightapp.service;

import io.renren.common.service.CrudService;
import io.renren.modules.eightapp.dto.EiCostInfoDTO;
import io.renren.modules.eightapp.entity.EiCostInfoEntity;

import java.util.List;

/**
 * 
 *
 * @author Mark 1132115960@gmail.com
 * @since 1.0.0 2022-12-27
 */
public interface EiCostInfoService extends CrudService<EiCostInfoEntity, EiCostInfoDTO> {
    /**
     * 确认支付
     * @param id
     */
    public void confirmPayment(Long id);

    /**
     * CostInfo表，获取所有订单信息
     * @return
     */
    public List<EiCostInfoDTO> getCostInfoAllDataList();

    /**
     * CostInfo表，根据业主ID获取订单
     * @param ownerId
     * @return
     */
    public List<EiCostInfoDTO> getCostInfoDataListByOwnerId(Integer ownerId);

    /**
     * CostInfo表，根据费用类型获取订单
     * @param type
     * @return
     */
    public List<EiCostInfoDTO> getCostInfoDataListByType(String type);
}